package com.zyg.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyg.pojo.Major;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MajorMapper extends BaseMapper<Major> {
    @Select(" select  *  from major")
    List<Major> getMajorList();



    @Select("SELECT * FROM major WHERE major_id = #{majorId}")
    Major getMajorById(@Param("majorId") Integer majorId);
}
